{template('../public/header.html')}

<!--黑名单列表-->
<div class="pad_10" >

	<form name="searchform" method="get" >
    <table width="100%" cellspacing="0" class="search_form">
        <tbody>
            <tr>
            <td>
            <div class="explain_col">
            	<input type="hidden" name="m" value="admin" />
                <input type="hidden" name="c" value="ipban" />
                <input type="hidden" name="a" value="index" />
                <input type="hidden" name="menuid" value="{$menuid}" />
                黑名单 :
                <input name="keyword" type="text" class="input-text" size="25" value="{:Trim(App.Req("keyword"))}" />
                <input type="submit" name="search" class="btn" value="搜索" style="margin-left:2px;" />
        	</div>
            </td>
            </tr>
        </tbody>
    </table>
    </form>

    <div class="J_tablelist table_list" data-acturi="{:U('ipban/ajax_edit')}">
    <table width="100%" cellspacing="0">
        <thead>
            <tr>
                <th width="40"><input type="checkbox" name="checkall" class="J_checkall"></th>
				<th><span tdtype="order_by" fieldname="id">ID</span></th>
                <th align="left"><span data-tdtype="order_by" data-field="name">黑名单</span></th>
				<th align="center">黑名单类型</th>
				<th align="left"><span data-tdtype="order_by" data-field="expires_time">有效期</span></th>
                <th width="120">{:L('operations_manage')}</th>
            </tr>
        </thead>
    	<tbody>
			{@noempty for='rs'}
			{$rs type='rs' pagesize='0' }
            <tr>
                <td align="center"><input type="checkbox" class="J_checkitem" value="{$rs("id")}"></td>
				<td align="center">{$rs("id")}</td>
                <td align="left"><span data-tdtype="edit" data-field="name" data-id="{$rs("id")}" class="tdedit">{$rs("name")}</span></td>
				<td align="center"><b>{if rs("type")="uname"}会员名{/if}{if rs("type")="ip"}ip{/if}{if rs("type")="email"}email{/if}</b></td>
				<td align="left">{:StdTime(rs("expires_time"))}</td>
                <td align="center">
                	<a href="javascript:;" class="J_showdialog" data-uri="{:U('ipban/edit?id=' & rs("id") )}" data-title="{:L('edit')} - {$rs("name")}"  data-id="edit" data-acttype="ajax" data-width="400" data-height="130">{:L('edit')}</a> | 
                    <a href="javascript:;" class="J_confirmurl" data-acttype="ajax" data-uri="{:U('ipban/delete?id=' & rs("id") )}" data-msg="{:sprintf(L('confirm_delete_one'),rs("name"))}">{:L('delete')}</a>
                </td>
            </tr>
            {/$rs}
			{/@noempty}
    	</tbody>
    </table>
    </div>

    <div class="btn_wrap_fixed">
    	<label><input type="checkbox" name="checkall" class="J_checkall">{:L('select_all')}/{:L('cancel')}</label>
    	<input type="button" class="btn" data-tdtype="batch_action" data-acttype="ajax" data-uri="{:U('ipban/delete')}" data-name="id" data-msg="{:L('confirm_delete')}" value="{:L('delete')}" />
		<div id="pages">
			{@pager data='rs'}
				{$pager("total")} 条记录 {$pager("no")}/{$pager("count")} 页 {if pager("count")>1}{$pager("bar")}{/if}
			{/@pager}
		</div>
    </div>

</div>
{template('../public/footer.html')}
</body>
</html>